import React from 'react';
import Demo from "../pages/demo/demo";
import Account from '../pages/account';
import Role from "../pages/role";
import Permission from "../pages/home";
import Message from "../pages/message";
import StubQueryIndex from '../pages/powerStation/index';
import Epile from '../pages/powerStation/ePile';
import Personpile from '../pages/powerStation/personPile';
import Orderlist from '../pages/powerStation/orderlist';
import CodeExchange from "../pages/user/codeExchange";
import ChargeTimes from '../pages/interaction/chargeTimes';
import Recovery from '../pages/interaction/recovery';
import CommendMd from '../pages/interaction/commendMd';
import ApplyBuildPile from '../pages/interaction/applyBuildPile';
import UserDetail from '../pages/account/userDetail';
import Voucher from "../pages/account/voucher";
import Pslist from '../pages/powerStation/psList';
import ApplyInvoice from "../pages/invoice/applyInvoice";
import InvoiceList from '../pages/invoice/invoicelist';
import AliLog from '../pages/alilog/alilog';
import ProgressChart from "../pages/powerStation/progressChart";
import PrivateStubManager from "../pages/privateStub/privateStubManager";
import PrivateStubOrder from "../pages/privateStub/privateStubOrder";
import FaultWarning from "../pages/operation/faultWarning";
import FrameVersion from "../pages/operation/frameVersion/index";
import RemoteUpgrade from "../pages/operation/remoteUpgrade/index";
import StubQuery from "../pages/operation/stubQuery/index";
import CompanyQuery from "../pages/customerService/company/index"
import AddWorkOrder from "../pages/customerService/workOrder/add"
import ManageWorkOrder from "../pages/customerService/workOrder/manage"
import NewBusiness from "../pages/newBusiness/newBusiness";
import InvestorManagment from "../pages/company/investorManagment";
import ContactManagment from "../pages/company/contactManagment";
import ConnectionList from "../pages/development/interconnection/interIndex/ConnectionList";
import DataAuth from "../pages/development/interconnection/interIndex/DataAuth";
import DataAuthAdd from '../pages/development/interconnection/interIndex/DataAuthAdd';
import Tplus0Index from '../pages/development/Tplus0config/index';
import StubParamsConfig from '../pages/operation/stubQuery/paramsConfig';
import AppletOrderList from '../pages/powerStation/appletOrderList';
import Demo_1 from '../pages/demo_1/demo';

class tabFrames {
  constructor (addTab) {
    return this.init(addTab);
  }

  init (addTab) {
    const Frame = {

      // '010101': <Demo/>,
      '1001': <Account onAdd={addTab}/>,
      '100201': <Permission onAdd={addTab}/>,
      '100202': <Role onAdd={addTab}/>,
      '020201': <Message onAdd={addTab}/>,
      '010201': <StubQueryIndex  onAdd={addTab}/>,
      '010202': <Epile  onAdd={addTab}/>,
      '010203': <Personpile  onAdd={addTab}/>,
      '010101': <UserDetail onAdd={addTab}/>,
      '020101': <CodeExchange onAdd={addTab}/>,
      '010901': <CommendMd onAdd={addTab}/>,
      '010902': <ApplyBuildPile onAdd={addTab}/>,
      '010903': <Recovery onAdd={addTab}/>,
      '010904': <ChargeTimes onAdd={addTab}/>,
      '010701': <CompanyQuery onAdd={addTab}/>,
      'addWorkOrder': <AddWorkOrder onAdd={addTab}/>,
      '010501': <ManageWorkOrder onAdd={addTab}/>,
      '0404': <AliLog onAdd={addTab}/>,
      '0402': <FrameVersion  which={1} onAdd={addTab}/>,
      'orderlist': <Orderlist onAdd={addTab}/>,
      'voucher': <Voucher onAdd={addTab}/>,
      'pslist': <Pslist onAdd={addTab}/>,
      'dataAuth': <DataAuth  onAdd={addTab}/>,
      'dataAuthAdd': <DataAuthAdd onAdd={addTab}/>,
      'applyinvoice': <ApplyInvoice onAdd={addTab}/>,
      'invoicelist': <InvoiceList onAdd={addTab}/>,
      'progresschart': <ProgressChart onAdd={addTab}/>,
      '060101': <PrivateStubManager onAdd={addTab}/>,
      '060201': <PrivateStubOrder onAdd={addTab}/>,
      '030108': <FaultWarning onAdd={addTab}/>,
      '030110': <FrameVersion onAdd={addTab}/>,
      '030106': <RemoteUpgrade onAdd={addTab}/>,
      '030104': <StubQuery onAdd={addTab}/>,
      '020301': <InvestorManagment onAdd={addTab}/>,
      '020302': <ContactManagment onAdd={addTab}/>,
      '070201': <NewBusiness onAdd={addTab}/>,
      '050101': <ConnectionList onAdd={addTab}/>,
      '0502': <Tplus0Index onAdd={addTab}/>,
      'stubParamsConfig': <StubParamsConfig onAdd={addTab}/>,
      'appletOrderList': <AppletOrderList onAdd={addTab}/>
      //'010101': <Demo/>,
      //'010201': <Demo_1 />
    };
    return Frame;
  }
}

export default tabFrames;